package net.openvision.music.composition.logical.predicates;

import net.openvision.music.composition.Element;
import net.openvision.util.logical.Predicate;

public class Contains extends Predicate {

	@Override
	public boolean evaluate(Object... args) {
		return ((Element)args[0]).getValue().contains(((Element)args[1]).getValue());
	}

	@Override
	public int getArity() {
		return 2;
	}
	

}
